package com.atguigu.jxc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
 * 商品信息实体
 */
@Data
@TableName("t_goods")
public class Goods {
  @TableId
  private Integer goodsId;
  @TableField("goods_code")
  private String goodsCode;
  @TableField("goods_name")
  private String goodsName;
  @TableField("inventory_quantity")
  private Integer inventoryQuantity;
  @TableField("last_purchasing_price")
  private double lastPurchasingPrice;
  @TableField("min_num")
  private Integer minNum;
  @TableField("goods_model")
  private String goodsModel;
  @TableField("goods_producer")
  private String goodsProducer;
  @TableField("purchasing_price")
  private double purchasingPrice;
  @TableField("remarks")
  private String remarks;
  @TableField("selling_price")
  private double sellingPrice;
  @TableField("state")
  private Integer state;// 0 初始化状态 1 期初库存入仓库  2  有进货或者销售单据
  @TableField("goods_unit")
  private String goodsUnit;
  @TableField("goods_type_id")
  private Integer goodsTypeId;
  @TableField(exist = false)
  private String goodsTypeName;
  @TableField(exist = false)
  private Integer saleTotal;// 销售总量

}
